package samples.d2.shapes 
{
	import flash.filters.GlowFilter;
	import samples.BaseSample;
	import shapes.shapes2D.polygon.RegularPolygon;
	
	/**
	 * ...
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class RegularPolygon0 extends BaseSample
	{
		
		public function RegularPolygon0() 
		{
			
			filters = [ new GlowFilter( color, .25, 12, 12, 2, 3 )];
			
			var p:RegularPolygon = new RegularPolygon( 100, 100, 50, 6 );
			p.x = sw / 2;
			p.y = sh / 2;
			addChild( p );
			p.draw();
			
			p.sides = 4
			p.draw();
			//graphics.beginFill( 0xFFFFFF );
			//p.draw( graphics);
			
		}
		
	}

}